import {
    http4
} from "@/service/axios";

// 班次信息列表post
export function getShift(data) {
    return http4.post({
        url: "/road/shift/list/page",
        data,
    });
}

// 班次信息状态修改
export function getShiftStatus(data) {
    return http4.post({
        url: `/road/shift/edit/${data.shiftId}/${data.status}`,
        data,
    });
}

// 班次信息删除
export function getDeleteShift(data) {
    return http4.post({
        url: `/road/shift/remove/${data}`,
        data,
    });
}

// 新增班次信息
export function getAddShift(data) {
    return http4.post({
      url: "/road/shift/add",
      data,
    });
}
  
// 编辑班次信息
export function getEditShift(data) {
    return http4.post({
      url: "/road/shift/edit",
      data,
    });
  }